﻿namespace TriangleGames.TrainRes
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmVector3 : NamedVariable
    {
        [SerializeField]
        private Vector3 value;

        public FsmVector3()
        {
        }

        public FsmVector3(FsmVector3 source) : base(source)
        {
            this.value = source.value;
        }

        public FsmVector3(string name) : base(name)
        {
        }

        public static implicit operator FsmVector3(Vector3 value)
        {
            FsmVector3 vector2 = new FsmVector3(string.Empty);
            vector2.value = value;
            return vector2;
        }

        public override string ToString()
        {
            return this.value.ToString();
        }

        public Vector3 Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

